package com.shzu.pojo;

import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;
@Component
public class MajorTestCollegeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MajorTestCollegeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMidIsNull() {
            addCriterion("mid is null");
            return (Criteria) this;
        }

        public Criteria andMidIsNotNull() {
            addCriterion("mid is not null");
            return (Criteria) this;
        }

        public Criteria andMidEqualTo(String value) {
            addCriterion("mid =", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidNotEqualTo(String value) {
            addCriterion("mid <>", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidGreaterThan(String value) {
            addCriterion("mid >", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidGreaterThanOrEqualTo(String value) {
            addCriterion("mid >=", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidLessThan(String value) {
            addCriterion("mid <", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidLessThanOrEqualTo(String value) {
            addCriterion("mid <=", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidLike(String value) {
            addCriterion("mid like", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidNotLike(String value) {
            addCriterion("mid not like", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidIn(List<String> values) {
            addCriterion("mid in", values, "mid");
            return (Criteria) this;
        }

        public Criteria andMidNotIn(List<String> values) {
            addCriterion("mid not in", values, "mid");
            return (Criteria) this;
        }

        public Criteria andMidBetween(String value1, String value2) {
            addCriterion("mid between", value1, value2, "mid");
            return (Criteria) this;
        }

        public Criteria andMidNotBetween(String value1, String value2) {
            addCriterion("mid not between", value1, value2, "mid");
            return (Criteria) this;
        }

        public Criteria andFcollegeIsNull() {
            addCriterion("fCollege is null");
            return (Criteria) this;
        }

        public Criteria andFcollegeIsNotNull() {
            addCriterion("fCollege is not null");
            return (Criteria) this;
        }

        public Criteria andFcollegeEqualTo(String value) {
            addCriterion("fCollege =", value, "fcollege");
            return (Criteria) this;
        }

        public Criteria andFcollegeNotEqualTo(String value) {
            addCriterion("fCollege <>", value, "fcollege");
            return (Criteria) this;
        }

        public Criteria andFcollegeGreaterThan(String value) {
            addCriterion("fCollege >", value, "fcollege");
            return (Criteria) this;
        }

        public Criteria andFcollegeGreaterThanOrEqualTo(String value) {
            addCriterion("fCollege >=", value, "fcollege");
            return (Criteria) this;
        }

        public Criteria andFcollegeLessThan(String value) {
            addCriterion("fCollege <", value, "fcollege");
            return (Criteria) this;
        }

        public Criteria andFcollegeLessThanOrEqualTo(String value) {
            addCriterion("fCollege <=", value, "fcollege");
            return (Criteria) this;
        }

        public Criteria andFcollegeLike(String value) {
            addCriterion("fCollege like", value, "fcollege");
            return (Criteria) this;
        }

        public Criteria andFcollegeNotLike(String value) {
            addCriterion("fCollege not like", value, "fcollege");
            return (Criteria) this;
        }

        public Criteria andFcollegeIn(List<String> values) {
            addCriterion("fCollege in", values, "fcollege");
            return (Criteria) this;
        }

        public Criteria andFcollegeNotIn(List<String> values) {
            addCriterion("fCollege not in", values, "fcollege");
            return (Criteria) this;
        }

        public Criteria andFcollegeBetween(String value1, String value2) {
            addCriterion("fCollege between", value1, value2, "fcollege");
            return (Criteria) this;
        }

        public Criteria andFcollegeNotBetween(String value1, String value2) {
            addCriterion("fCollege not between", value1, value2, "fcollege");
            return (Criteria) this;
        }

        public Criteria andFcollegeidIsNull() {
            addCriterion("fcollegeid is null");
            return (Criteria) this;
        }

        public Criteria andFcollegeidIsNotNull() {
            addCriterion("fcollegeid is not null");
            return (Criteria) this;
        }

        public Criteria andFcollegeidEqualTo(String value) {
            addCriterion("fcollegeid =", value, "fcollegeid");
            return (Criteria) this;
        }

        public Criteria andFcollegeidNotEqualTo(String value) {
            addCriterion("fcollegeid <>", value, "fcollegeid");
            return (Criteria) this;
        }

        public Criteria andFcollegeidGreaterThan(String value) {
            addCriterion("fcollegeid >", value, "fcollegeid");
            return (Criteria) this;
        }

        public Criteria andFcollegeidGreaterThanOrEqualTo(String value) {
            addCriterion("fcollegeid >=", value, "fcollegeid");
            return (Criteria) this;
        }

        public Criteria andFcollegeidLessThan(String value) {
            addCriterion("fcollegeid <", value, "fcollegeid");
            return (Criteria) this;
        }

        public Criteria andFcollegeidLessThanOrEqualTo(String value) {
            addCriterion("fcollegeid <=", value, "fcollegeid");
            return (Criteria) this;
        }

        public Criteria andFcollegeidLike(String value) {
            addCriterion("fcollegeid like", value, "fcollegeid");
            return (Criteria) this;
        }

        public Criteria andFcollegeidNotLike(String value) {
            addCriterion("fcollegeid not like", value, "fcollegeid");
            return (Criteria) this;
        }

        public Criteria andFcollegeidIn(List<String> values) {
            addCriterion("fcollegeid in", values, "fcollegeid");
            return (Criteria) this;
        }

        public Criteria andFcollegeidNotIn(List<String> values) {
            addCriterion("fcollegeid not in", values, "fcollegeid");
            return (Criteria) this;
        }

        public Criteria andFcollegeidBetween(String value1, String value2) {
            addCriterion("fcollegeid between", value1, value2, "fcollegeid");
            return (Criteria) this;
        }

        public Criteria andFcollegeidNotBetween(String value1, String value2) {
            addCriterion("fcollegeid not between", value1, value2, "fcollegeid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}